/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class NumberExpr extends Expr {

	public NumberExpr(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void genC(PW pw, boolean putParenthesis) {
		pw.printIdent(value + "");
	}

	public void genKrakatoa(PW pw, boolean putParenthesis) {
		pw.print(value + "");
	}

	public Type getType() {
		return Type.intType;
	}

	private int value;
}
